package com.yzt.zhuju.network.entity.mine;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author : bob
 * date   : 2023/2/10
 * desc   :
 */
public  class UserLevelBaseInfo implements Parcelable {

    private int experienceRequired;

    private int grade;

    private String icon;

    private int rankExperience;

    protected UserLevelBaseInfo(Parcel in) {
        experienceRequired = in.readInt();
        grade = in.readInt();
        icon = in.readString();
        rankExperience = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(experienceRequired);
        dest.writeInt(grade);
        dest.writeString(icon);
        dest.writeInt(rankExperience);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserLevelBaseInfo> CREATOR = new Creator<UserLevelBaseInfo>() {
        @Override
        public UserLevelBaseInfo createFromParcel(Parcel in) {
            return new UserLevelBaseInfo(in);
        }

        @Override
        public UserLevelBaseInfo[] newArray(int size) {
            return new UserLevelBaseInfo[size];
        }
    };

    public UserLevelBaseInfo() {
    }

    public int getExperienceRequired() {
        return experienceRequired;
    }

    public void setExperienceRequired(int experienceRequired) {
        this.experienceRequired = experienceRequired;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getRankExperience() {
        return rankExperience;
    }

    public void setRankExperience(int rankExperience) {
        this.rankExperience = rankExperience;
    }
}